.class Lorg/apache/cordova/WqCordovaActivity$7;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic this$0:Lorg/apache/cordova/WqCordovaActivity;


# direct methods
.method constructor <init>(Lorg/apache/cordova/WqCordovaActivity;)V
    .locals 0

    iput-object p1, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    # getter for: Lorg/apache/cordova/WqCordovaActivity;->mAnimPopupWindowL:Lcom/waiqin365/lightapp/view/ag;
    invoke-static {v0}, Lorg/apache/cordova/WqCordovaActivity;->access$700(Lorg/apache/cordova/WqCordovaActivity;)Lcom/waiqin365/lightapp/view/ag;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/ag;->a()V

    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->spinnerHashList:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->spinnerHashList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-le v0, p3, :cond_0

    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->spinnerHashList:Ljava/util/List;

    invoke-interface {v0, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    const-string/jumbo v1, "id"

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string/jumbo v2, "name"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v2, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v2, v2, Lorg/apache/cordova/WqCordovaActivity;->selectTypeTV:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->callbackContextMenu:Lorg/apache/cordova/CallbackContext;

    if-eqz v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lorg/apache/cordova/WqCordovaActivity$7;->this$0:Lorg/apache/cordova/WqCordovaActivity;

    iget-object v0, v0, Lorg/apache/cordova/WqCordovaActivity;->callbackContextMenu:Lorg/apache/cordova/CallbackContext;

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v3, "position"

    invoke-virtual {v2, v3, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/apache/cordova/CallbackContext;->success(Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
